home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
magazine
/
drdobbs
/
1988
/
03
/
mathews
/
mathews.ls1
next >
Wrap
Text File
|
1979-12-31
|
768b
|
27 lines
/* 001 23-Apr-87 tbtree.h
Header file for threaded binary tree functions.
This code is hereby placed into the public domain.
*/
/* define TREE_NODE type */
typedef struct _tree_ent {
char *word; /* word ptr for this node */
int usage; /* usage counter for word */
int flags; /* word flags */
struct _tree_ent *lchild; /* thread or left child ptr */
struct _tree_ent *rchild; /* thread or right child ptr */
} TREE_NODE;
/* define bit values for node flags */
#define RBIT (1) /* right child if set, thread if 0 */
#define LBIT (2) /* left child if set, thread if 0 */